const express = require('express');
const router = express.Router();
const {
  createAudit,
  getAudits,
  getAuditDetails,
  runFullAudit
} = require('../controllers/auditController');
const { protect } = require('../middleware/authMiddleware');

// 审核管理路由
router.route('/')
  .post(protect, createAudit)
  .get(protect, getAudits);

router.get('/:id', protect, getAuditDetails);
router.post('/full-audit', protect, runFullAudit);

module.exports = router;